<?php
		session_start ();
        include_once('cont.php');
 
		$email = mysql_real_escape_string( $_POST["email"] );
		$pass = mysql_real_escape_string( md5($_POST["pass"]) );
 
		if( empty($email) || empty($pass) )
			echo "Username and Password Mandatory - from PHP";
		else
		{
		$sql = "SELECT count(*) FROM u_ser WHERE(
		        e_mail='$email' 
				AND 
				pass_wd='$pass')";
 
 
	    $res = mysql_query($sql);
		$row = mysql_fetch_array($res);
 
		if( $row[0] > 0 )
		 echo "OK";
		else
		 echo "FAILED";
   		}		
?>